package com.sudo.dao.admin.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@Table(name = "sys_my_sts_day")
public class SysMyStsDay {
    @Id
    private Integer id;

    @Column(name = "username")
    private String username;

    // 日期
    @Column(name = "date")
    private LocalDate date;

    // 登录人次
    @Column(name = "login_not")
    private Integer loginNot = 0;

    // 活跃度（操作数）
    @Column(name = "num_behavior")
    private Integer numBehavior = 0;

    // 创建时间
    @Column(name = "create_time")
    private LocalDateTime createTime;



    public SysMyStsDay(LocalDate date) {
        this.date = date;
    }
}
